#ifndef __OTA_VERSION_H
#define __OTA_VERSION_H
#include "ota_http.h"
#include "sys/reboot.h"
#include "time.h"
#define CUR_VERSION_INFO "{\"major\": 1, \"minor\": 0, \"patch\": 0}"

typedef struct
{
    int major;
    int minor;
    int patch;
    char *sha1;
} version_t;

gate_status_t ota_version_check(void);

void ota_version_auto_update(void);
#endif
